<?php
class upvideoAction extends runAction {
	
	public function index() {
		$id =$id==''?$_GET['id']:$id;
		
		if(!$id){
			$this->error('错误!!');
			exit;
		}
		CK ( 'uploaddir', 'movie' );
		import ( 'app.ORG.file' );
		$this->assign('id',$id);
		$this->assign('name',$_GET['name']);
		$this->display ( MODULE_NAME . ':index' );
	}
	
	public function save() {
	
		$v = explode ( '.', $_FILES ['Filedata'] ['name'] );
		$_FILES ['Filedata'] ['name'] = $_GET['name'].'.' . $v [count ( $v ) - 1];
		
		$c = A ( 'upload' );
		$c->f_upload ( time(),$_GET['id'] );
	}
	
	
}
?>